package com.copd.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PageResponseBuilder {
    public static Map<String, Object> buildPageResponse(List<?> list, long total, int page, int size) {
        Map<String, Object> data = new HashMap<>();
        data.put("list", list);
        data.put("total", total);
        data.put("page", page);
        data.put("size", size);
        return data;
    }
} 